%size {
  width: 100%;
  height: 100%;
}

@include b(image) {
  position: relative;
  display: inline-block;
  overflow: hidden;

  @include e(placeholder) {
    @extend %size;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: $--s-font-size-xs;
    background-color: $--s-placeholder-color;
    color: $--s-placeholder-text-color;
  }

  @include e(inner) {
    @extend %size;
    vertical-align: top;

    @include m(center) {
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: block;
    }
  }
}
